package basicClasses;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("message")
public class MessageObject
{
	public String sender;
	public String reciever;
	public long timestamp;
	public String text;
	
	public MessageObject()
	{
		
	}
	
	public MessageObject(String sender,String reciever, String text, int timestamp)
	{
		this.sender = sender;
		this.reciever=reciever;
		this.text = text;
		this.timestamp = timestamp;
	}
	
	public MessageObject(String sender,String reciever, String text)
	{
		this.sender = sender;
		this.reciever=reciever;
		this.text = text;
		this.timestamp = System.currentTimeMillis();
	}

	public void setSender(String sender)
	{
		this.sender = sender;
	}
	
	public void setReciever(String reciever)
	{
		this.reciever = reciever;
	}
	
	public void setText(String text)
	{
		this.text = text;
	}
	
	public void setTimeStamp(long timestamp)
	{
		this.timestamp = timestamp;
	}
	
	public String getSender()
	{
		return sender;
	}
	
	public String getReciever()
	{
		return reciever;
	}
	
	public String getText()
	{
		return text;
	}
	
	public long getTimeStamp()
	{
		return timestamp;
	}
}
